users.extraUsers.<name>.linger
Whether to enable or disable lingering for this user. Without lingering, user units will not be started until the user logs in, and may be stopped on logout depending on the settings in logind.conf.
By default, NixOS will not manage lingering, new users will default
to not lingering, and lingering can be configured imperatively using
loginctl enable-linger or loginctl disable-linger. Setting
this option to true or false is the declarative equivalent of
running loginctl enable-linger or loginctl disable-linger
respectively.
- Type
null or boolean- Default
null- Example
true- Declared
- <nixpkgs/nixos/modules/config/users-groups.nix>